﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using MM.Common;

namespace MM.Model
{
    public class OrderInfo : IReaderLoad
    {
        public void LoadData(IDataReader dr)
        {
            this.OrderNO = dr["OrderID"].ToStringOr();
            this.UserID = dr["UserID"].ToIntOr();
            this.Price = dr["Price"].ToDecimalOr();
            this.Params = dr["Params"].ToStringOr();
        }
        /// <summary>
        /// 订单号
        /// </summary>
        public string OrderNO
        { get; set; }

        /// <summary>
        /// 用户ID
        /// </summary>
        public int UserID
        { get; set; }

        /// <summary>
        /// 用户ID
        /// </summary>
        public decimal Price
        { get; set; }

        /// <summary>
        /// 参数集合
        /// </summary>
        public string Params
        { get; set; }
    }
}
